#include "qipeditor.h"
#include "qipeditorplugin.h"

#include <QtPlugin>

QIpEditorPlugin::QIpEditorPlugin(QObject *parent)
    : QObject(parent)
{
    m_initialized = false;
}

void QIpEditorPlugin::initialize(QDesignerFormEditorInterface * /* core */)
{
    if (m_initialized)
        return;

    // Add extension registrations, etc. here

    m_initialized = true;
}

bool QIpEditorPlugin::isInitialized() const
{
    return m_initialized;
}

QWidget *QIpEditorPlugin::createWidget(QWidget *parent)
{
    return new QIpEditor(parent);
}

QString QIpEditorPlugin::name() const
{
    return QLatin1String("QIpEditor");
}

QString QIpEditorPlugin::group() const
{
    return QLatin1String("Qt/Jackal");
}

QIcon QIpEditorPlugin::icon() const
{
    return QIcon();
}

QString QIpEditorPlugin::toolTip() const
{
    return QLatin1String("ip input widget");
}

QString QIpEditorPlugin::whatsThis() const
{
    return QLatin1String("ip input widget");
}

bool QIpEditorPlugin::isContainer() const
{
    return false;
}

QString QIpEditorPlugin::domXml() const
{
    return QLatin1String("<widget class=\"QIpEditor\" name=\"qIpEditor\">\n</widget>\n");
}

QString QIpEditorPlugin::includeFile() const
{
    return QLatin1String("qipeditor.h");
}
#if QT_VERSION < 0x050000
Q_EXPORT_PLUGIN2(qipeditorplugin, QIpEditorPlugin)
#endif // QT_VERSION < 0x050000
